package jtwittconsolepackage;

import java.util.ArrayList;

/**
 * Class is used to store a twitter-status-version
 * that can be printed faster, because the single lines 
 * are stored;
 */
public class TweetReadyForPrint
{
    ArrayList<String> tweetSplittedForPrint;
    int refreshCounter;
    long id;

    public TweetReadyForPrint(ArrayList<String> twitterSplittedForPrint, long id)
    {
        this.tweetSplittedForPrint = twitterSplittedForPrint;
        this.id = id;
        refreshCounter = 0;
    }

    public long getId()
    {
        return id;
    }

    /**
     * Sets the refresh counter to the last run;
     */
    public void setRefreshedInLastRun()
    {
        this.refreshCounter = TimeLineRepository.getInstance().getRefreshCounter();
    }
}
